package com.fastloan.jn.mgt.all.table.service;

import com.fastloan.jn.mgt.all.table.model.AllCellValue;
import com.kawins.base.BaseService;
import com.fastloan.jn.mgt.all.table.model.AllTable;
import com.kawins.result.ResultTo;

import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * Created by gelon on 2017/10/27.
 */
public interface AllTableService extends BaseService<AllTable> {



    List<AllTable> getTable(String relevanceId);

    List<AllTable> saveUnique(InputStream is, String filename, String relevanceId) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;

    void save(List<AllCellValue> allCellValues, String relaId);

    void saveAppTables(InputStream is, @NotNull String relevanceId,String filename, String appId) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, IOException;

}
